package com.sun.modules.register.service.impl;

import com.sun.modules.register.dao.RegisterDao;
import com.sun.modules.register.entity.ClubMemberEntity;
import com.sun.modules.register.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author: zhaodongchao
 * @Company: datong
 * @Date: 2018-08-12
 * @Email: zhaodc@dtinsure.com
 */
@Service("registerServiceImpl")
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    private RegisterDao registerDao;
    /**
     * 保存会员注册的信息
     *
     * @param clubMember 会员信息bean
     * @return 1=保存成功，0=保存失败
     */
    @Override
    public void save(ClubMemberEntity clubMember) {
        registerDao.save(clubMember);
    }

    /**
     * 查询会员信息集合
     *
     * @param clubMember 查询条件
     * @return 集合
     */
    @Override
    public List<ClubMemberEntity> queryList(ClubMemberEntity clubMember) {
        return registerDao.query(clubMember);
    }
}
